﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WebApplication.Models;

namespace WebApplication.Controllers
{
    public class StudentController : Controller
    {
        private readonly PersonContext _context;

        public StudentController(PersonContext context)
        {
            _context = context;
        }

        public IActionResult Index()
        {
            return View(_context.Person.ToList());
        }
    }
}
